package com.vains.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.vains.entity.OauthPermission;
import com.vains.mapper.OauthPermissionMapper;
import com.vains.service.IOauthPermissionService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 资源表 服务实现类
 * </p>
 *
 * @author vains
 * @since 2020-06-08
 */
@Slf4j
@Service
@AllArgsConstructor
public class OauthPermissionServiceImpl extends ServiceImpl<OauthPermissionMapper, OauthPermission> implements IOauthPermissionService {

    @Override
    public List<OauthPermission> getPermissionsByUserId(Integer userId) {
        return baseMapper.getPermissionsByUserId(userId);
    }
}
